/**
 * 
 */
package com.massyframework.beanskin.graphql.util;

import graphql.schema.GraphQLFieldDefinition;

/**
 * GraphQL 工具类
 * @author huangkaihui
 *
 */
public abstract class GraphQLUtils {

	/**
	 * 判断<code>definition</code>的名称是否等同于<code>name</code>
	 * @param definition {@link GraphQLFieldDefinition},字段定义
	 * @param name {@link String},名称
	 * @return {@link boolean}, 返回<code>true</code>表示相同，否则返回<code>false</code>
	 */
	public static boolean fieldNameEquals(GraphQLFieldDefinition definition, String name) {
		return name.equals(definition.getName());
	}
	
}
